Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boards generator: updates #5103

Merged
merged 5 commits into from
Sep 3, 2018
Merged

boards generator: updates #5103

merged 5 commits into from
Sep 3, 2018

Conversation

d-a-v
Copy link
Collaborator

@d-a-v d-a-v commented Sep 3, 2018

  • simplified mapping description: only flash and spiffs sizes
  • flash description - almost no more magic len or addresses
  • some ldscripts are renamed due to autogenerated names
  • verbose when generating
    • 2M / no spiffs
    • 2M / 512K spiffs
    • 4M / no spiffs

* simplified mapping description: only flash and spiffs sizes
* flash description - almost no more magic len or addresses
* some ldscripts are renamed due to autogenerated names
* + 2M / no spiffs
* + 2M / 512K spiffs
@d-a-v
Copy link
Collaborator Author

d-a-v commented Sep 3, 2018

To try this PR, tools/boards.txt.py should simply be replaced by this one

( '.menu.CpuFrequency.80.build.f_cpu', '80000000L' ),
( '.menu.CpuFrequency.160', '160 MHz' ),
( '.menu.CpuFrequency.160.build.f_cpu', '160000000L' ),
( '.menu.cpuHz.80', '80 MHz' ),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that if you change names here, you also need to update

Arduino/tools/build.py

Lines 47 to 55 in c33ef89

cmd += '-fqbn=esp8266com:esp8266:{board_name}:' \
'CpuFrequency={cpu_freq},' \
'FlashFreq={flash_freq},' \
'FlashMode={flash_mode},' \
'UploadSpeed=921600,' \
'FlashSize={flash_size},' \
'ResetMethod=nodemcu'.format(**vars(args))
if args.debug_port and args.debug_level:
cmd += 'Debug={debug_port},DebugLevel={debug_level}'.format(**vars(args))
.

# | flash | reserved | empty | spiffs | eeprom | rf

eeprom_size_kb = 4
rf_size_kb = 16
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rfcal (4kB) + sdk (wifi) settings (12kB)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@igrr
Copy link
Member

igrr commented Sep 3, 2018

tools/build.py also needs an update if the build option names change.

@d-a-v d-a-v mentioned this pull request Sep 3, 2018
Copy link
Collaborator

@devyte devyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants